package lesson.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lesson.entity.LineTrend;
import lesson.entity.NocvData;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description:
 * @Author: Wanzhen
 * @Date: 2022/6/8-22:39
 * 接口对方法进行定义
 *
 */
public interface IndexMapper extends BaseMapper<NocvData> {

    @Select("select * from line_trend order by create_time limit 7")
    List<LineTrend> findSevenData();

    @Select("select * from nocv_data order by id desc limit 34")
    List<NocvData> listOrderByIdLimit34();

}
